package tmproject.hlhj.fhp.upbrintryproject

import android.app.Application
import android.util.Log
import com.tenma.ventures.bean.TMUser
import com.tenma.ventures.bean.utils.TMSharedPUtil
import com.tenma.ventures.config.TMServerConfig

/**
 * Created by Never Fear   on 2018\10\16 0016.
Never More....
 */
class MyApp :Application(){

    override fun onCreate() {
        super.onCreate()
//        TMServerConfig.BASE_URL="http://mx.360tianma.com"
        TMServerConfig.BASE_URL="http://review.360tianma.com"
//        TMServerConfig.BASE_URL="http://tax.360tianma.com"
//        TMServerConfig.BASE_URL="http://tianma.wufenhuyu.com"
        TMSharedPUtil.saveTMToken(this,"291ACDAEB45D8B55CEB1D310DC7CC3E7")
        val tmUser = TMUser()
        tmUser.setMember_id(113);
        tmUser.setMember_code("D708FF06A9A60B7EDD75B3E861FDFFE4");
        tmUser.setToken("291ACDAEB45D8B55CEB1D310DC7CC3E7");
        tmUser.mobile=17781481226.toString()
        TMSharedPUtil.saveTMUser(this,tmUser);
        TMSharedPUtil.saveTMThemeColor(this,"#000000");
        Log.e("fhpp","保存的token${TMSharedPUtil.getTMToken(this)}")
    }
}